﻿
        function fixH(one, two) {
            if (document.getElementById(one)) {
                var lh = document.getElementById(one).offsetHeight;
                var rh = document.getElementById(two).offsetHeight;
                var nh = Math.max(lh, rh);
                document.getElementById(one).style.minHeight = nh + "px";
                document.getElementById(two).style.minHeight = nh + "px";
            }
        }
		function fixH3(one, two) {
            if (document.getElementById(one)) {
                var lh = document.getElementById(one).offsetHeight;
                var rh = document.getElementById(two).offsetHeight;
                var nh = Math.max(lh, rh);
                document.getElementById(one).style.minHeight = nh + "px";
                document.getElementById(two).style.minHeight = nh + "px";
            }
        }
        //this does it for three
        function sortNum(a, b) { return b - a }
        function fixH2(one, two, three) {
            if (document.getElementById(one)) {
                var obj = new Array(3);
                var option = [one, two, three];
                for (var i = 0; i < option.length; i++) {
                    document.getElementById(option[i]).style.height = "auto";
                    obj[i] = document.getElementById(option[i]).offsetHeight;
                    nh = obj.sort(sortNum);
                }
                nh1 = nh.splice(1, 2);
                for (var i = 0; i < option.length; i++) {
                    document.getElementById(option[i]).style.minHeight = nh + "px";
                }
            }
        }
        //


        window.onload = function () {
            fixH('left', 'discussion-column');
			fixH3('left_chitiet', 'right_chitiet');
            /*fixH2('leftboxwapper', 'contentboxwapper', 'rightboxwapper');*/
        }
    